kv 0.3.0

Easy embedded key/value stores for applications written in Rust
Documentation

kv

An embedded key/value store for Rust based on LMDB.

Example

let cfg = Config::default(DB_PATH);
let store = Store::new(cfg).unwrap();
let bucket = store.default().unwrap();

// Set a value
{
    let mut txn = store.write_txn().unwrap();
    txn.set(bucket, "testing", "abc123").unwrap();
    txn.commit().unwrap();
}

// Get a value from the store
{
    let txn = store.read_txn().unwrap();
    assert_eq!(txn.get::<_, &str>(bucket, "testing").unwrap(), "abc123");
}

See https://docs.rs/kv for more information